# Copyright (C) 2006  Apptility LLC  http://www.apptility.com
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA


class WsController < ApplicationController
  require 'soap/wsdlDriver'
  
  def list
    factory = SOAP::WSDLDriverFactory.new("http://api.google.com/GoogleSearch.wsdl")
    service = factory.create_rpc_driver
    
    # get your own key for Google search, sp8kCI9QFHIQcAlTzRn/Nmiz/O1U1L/C 
    @service_output = service.doGoogleSearch("sp8kCI9QFHIQcAlTzRn/Nmiz/O1U1L/C", "OpenAppDotOrg", 0, 10, "false", "", "false", "", "latin1", "latin1")
  end 
  
   
end
